package com.wonders.frame.config;

import com.wonders.frame.common.util.RedisUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.RedisTemplate;

import javax.annotation.Resource;

/**
 * Title: ConfigManager
 * Description:
 * @author 顾乘瑞
 * @date 2018年7月2日
 */
@Configuration
public class ConfigManager {
    @Resource
    private RedisTemplate<String, Object> redisTemplate;
    @Bean
    public int readConf() {
        RedisUtil.redisTemplate = redisTemplate;
        return 1;
    }

}
